package com.fat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class UserVo {

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @NotBlank(message = "昵称不能为空")
    @Schema(description = "昵称")
    private String nickname;

    @Schema(description = "密码")
    private String password;

    @NotBlank(message = "性别不能为空")
    @Schema(description = "性别")
    private String sex;

    @NotNull(message = "年龄不能为空")
    @Schema(description = "年龄")
    private Integer age;

    @Schema(description = "是否为管理员（0表示用户，1表示管理员）")
    private Integer isAdmin;

}
